/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2022-2022. All rights reserved.
 */

import { Progress } from '@ohos/sdkmanager-common';

import { OhosLogger } from '../../utils/log/ohos-logger.js';

const LOGGER = OhosLogger.getLogger('Sdk');

export class DefaultProgress implements Progress {
  debug(log: string): void {
    LOGGER.debug(log);
  }

  error(log: string): void {
    LOGGER.error(log);
  }

  fatal(log: string): void {
    LOGGER.debug(log);
  }

  info(log: string): void {
    LOGGER.info(log);
  }

  warn(log: string): void {
    LOGGER.warn(log);
  }
}
